/*!
 * @author Toma <yuanming200755@163.com>
 * Date 2018-9-1 10:54:57
 */

import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'

import 'element-ui/lib/theme-chalk/index.css';
import './style/index.less';

import {
  Form,
  FormItem,
  Input,
  Button,
  ButtonGroup,
  Tooltip,
  Switch
} from 'element-ui';

Vue.component(Form.name, Form);
Vue.component(FormItem.name, FormItem);
Vue.component(Input.name, Input);
Vue.component(Button.name, Button);
Vue.component(ButtonGroup.name, ButtonGroup);
Vue.component(Tooltip.name, Tooltip);
Vue.component(Switch.name, Switch);

import mixin from './mixin';

Vue.use(mixin);
Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
